package net.xdclass.xdclass.controller;

import net.xdclass.xdclass.service.VideoService;
import net.xdclass.xdclass.utils.JsonData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;



@RestController
@RequestMapping("api/v1/pus/video")
public class VideoController {
    @Autowired
    VideoService videoService;
    @GetMapping("/list")
    public JsonData listVideo(){

        return JsonData.buildSuccess(videoService.listVideo());
    }
}
